package net.ifilm.utility;

/**
 * User: <a href="wangjunneil@gmail.com">wangjun</a>
 * Date: 2012-08-12 19:53
 */
public final class ResourceUtil {

    private static final String ROOTDIR = "/upload";
    private static final String SLIDEDIR = "/slide";
    private static final String FILESEQ = "/";

    public static String getSlidePath(String fileName) {
        StringBuffer dir = new StringBuffer();
        dir.append(ROOTDIR)
                .append(SLIDEDIR)
                .append(FILESEQ)
                .append(DateTimeUtil.getDate())
                .append(FILESEQ)
                .append(fileName);
        return dir.toString();
    }

}
